package project1;

public class Bird extends Animal{
    private String color;

    public Bird(int age, String color){
        super(age);
        this.color = color;
    }

    public String getColor() {
        return color;
    }
    public void setColor(String color){
        this.color = color;
    }

    @Override
    public String info() {
        return super.info() + "我是一只" + color + "色的鸟\n" ;
    }
}
